class Color:
    BLACK = 0x0000
    WHITE = 0xFFFF
    SLATE_GRAY = 0x7412
    DARK_SLATE_GRAY = 0x2A69 #暗岩灰
    LIGHT_SLATE_GRAY = 0x7453
    DIMGRAY = 0x6B4D #昏灰
    STRONG_GRAY = 0x18C3
    GRAY = 0x8410
    DARK_GRAY = 0xAD55
    SILVER = 0xC618
    LIGHT_GRAY = 0xD69A
    GAISBORO = 0xDEFB #庚斯博罗灰
    WHITE_SMOKE = 0xF7BE #白烟
    SNOW = 0xFFDF
    IRON_GRAY = 0x62CA #铁灰
    GREEN = 0x07E0
    RED = 0xF800
    DARK_RED = 0x8800
    ORANGE = 0xFD20
    GOLD = 0xFEA0
    BLUE = 0x001F
    SKY_BLUE = 0x867D
    PRUSSIAN_BLUE = 0x018A #普鲁士蓝
    CYAN = 0x07FF  # 青色
    PURPLE = 0x780F  # 紫色
    YELLOW = 0xFFE0

    @staticmethod
    def get_rgb565_color(r, g, b):
        return ((r << 8) & 0xF800) | ((g << 3) & 0x07E0) | ((b >> 3) & 0x001F)